package com.karry.yl.domain.baseinfo;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.karry.commons.base.SuperEntity;

@TableName("room")
public class Room extends SuperEntity {
    public static final int STATUS_KY = 1;
    public static final int STATUS_MY = 2;
    private String tag; //房间标签（如四人间、三人间等）
    private String code; // 房间编号
    private int floor;  //所属楼层
    private int bedNum;   // 床位数，添加床位后自动计算得出
    private int direction; //房间朝向  1：朝南 2：朝北 3:超西 4:朝东
    private Double area; //房间面积

    @JsonSerialize(using= ToStringSerializer.class)
    private Long buildingId; //所属楼宇
    @TableField(exist = false)  //表示该属性不为数据库表字段，但又是必须使用的。
    private String buildingName; //所属楼宇

    private Long orgId; //所属机构
    private int status;  // 房间状态 1:可用 2:满员  3:停用
    @TableField(exist = false)
    private String selectName; //字段名称
    @TableField(exist = false)
    private String builNum; //楼宇对应房间数
    @TableField(exist = false)
    private String builFloorNum; //楼宇楼层对应房间数

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public int getFloor() {
        return floor;
    }

    public void setFloor(int floor) {
        this.floor = floor;
    }

    public int getBedNum() {
        return bedNum;
    }

    public void setBedNum(int bedNum) {
        this.bedNum = bedNum;
    }

    public int getDirection() {
        return direction;
    }

    public void setDirection(int direction) {
        this.direction = direction;
    }

    public Double getArea() {
        return area;
    }

    public void setArea(Double area) {
        this.area = area;
    }

    public Long getBuildingId() {
        return buildingId;
    }

    public void setBuildingId(Long buildingId) {
        this.buildingId = buildingId;
    }

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getBuildingName() {
        return buildingName;
    }

    public void setBuildingName(String buildingName) {
        this.buildingName = buildingName;
    }

    public String getSelectName() {
        return selectName;
    }

    public void setSelectName(String selectName) {
        this.selectName = selectName;
    }

    public String getBuilNum() {
        return builNum;
    }

    public void setBuilNum(String builNum) {
        this.builNum = builNum;
    }

    public String getBuilFloorNum() {
        return builFloorNum;
    }

    public void setBuilFloorNum(String builFloorNum) {
        this.builFloorNum = builFloorNum;
    }
}
